package msu.ml.gis;

import java.util.*;
import java.awt.geom.Rectangle2D;


public class TestDriver2
{

	public static void main(String [] args)
	{
		Shapefile sfile = new Shapefile(40.1506, -89.3369);
		sfile.setShapeType(5);

		Polygon polygon = new Polygon();
		polygon.getPoints().add(new Point(450000, 4500000));
		polygon.getPoints().add(new Point(450000, 4500500));
		polygon.getPoints().add(new Point(450500, 4500500));
		polygon.getPoints().add(new Point(450500, 4500000));
		polygon.getPoints().add(new Point(450000, 4500000));
		polygon.setBoundingBox(new Rectangle2D.Double(450000, 4500000, 500, 500));
		sfile.addShape(polygon);

		ShapefileWriter writer = new ShapefileWriter();
		writer.write(sfile, "test2");

	}
}
